set serviceName=JR_Net_Tasks
set serviceFilePath=C:\Users\Sun_Weiwei\Desktop\JR\Tasks\EMC.VISITOR.Tasks.exe 
% ע�ͣ�  set serviceFilePath=C:\Users\Sun_Weiwei\Desktop\JR\Tasks\EMC.VISITOR.Tasks.exe%
set serviceDescription=JR_Net_Tasks_Service
sc.exe create %serviceName% BinPath=%serviceFilePath%
sc.exe config %serviceName% start=auto  
sc.exe description %serviceName% %serviceDescription%
sc.exe start %serviceName%
pause
cmd